package com.mall.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.Update;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.mall.entity.Orderreturn;
import com.mall.mapper.OrderreturnMapper;
import com.mall.mapper.OrdersMapper;
import com.mall.mapper.UserMapper;
import com.mall.service.OrderreturnService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.org.apache.xpath.internal.operations.Or;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author fire
 * @since 2020-04-16
 */
@Service
public class OrderreturnServiceImpl extends ServiceImpl<OrderreturnMapper, Orderreturn> implements OrderreturnService {

    @Autowired
    private OrderreturnMapper orderreturnMapper;


    @Override
    public List<Orderreturn> getPendingReturnOrders() {
        QueryWrapper<Orderreturn> wrapper = new QueryWrapper<>();
        wrapper.eq("status", "0");
        return orderreturnMapper.selectList(wrapper);
    }
}
